package org.cangkuguanli.wangruiqi_bookstore.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.cangkuguanli.wangruiqi_bookstore.bean.ShoppingCart;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    @Select("select * from shopping_cart where user_id=#{user_id}")
    List<ShoppingCart> findByUserId(long user_id);

}
